/**
 * Sample React Native App
 * https://github.com/facebook/react-native
 *
 * @format
 * @flow
 * @lint-ignore-every XPLATJSCOPYRIGHT1
 */

import React, {Component} from 'react';
import {Platform, StyleSheet, Text, View} from 'react-native';
import {Navigation} from 'react-native-navigation';
import Home from './src/Home/Home'
import My from './src/My/My'

import {commonStyle} from "./src/icon/commonStyle";
import Feather from 'react-native-vector-icons/Feather'
import Icon from "react-native-vector-icons/AntDesign";
export default class App extends Component<Props> {

  componentDidMount(){
    Navigation.setRoot({
      root:{
        bottomTabs:{
          id:'BottomTabsId',
          children:[
            {
              stack:{
                children:[{
                  component:{
                    id:'HomeId',
                    name:'app.Home'
                  }
                }],
                options:{
                  bottomTab:{
                    fontSize:15,
                    text:'首页',
                    selectedTextColor:'rgba(63, 136, 251, 1)',
                  }
                }
              }
            },
            {
              stack:{
                children:[{
                  component:{
                    id:'MyId',
                    name:'app.My'
                  }
                }],
                options:{
                  bottomTab:{
                    fontSize:15,
                    text:'我的',
                    selectedTextColor:'rgba(63, 136, 251, 1)',
                  }
                }
              }
            }
          ]
        }
      }
    })
  }

  render() {


    return (
      <View style={styles.container}>

      </View>
    );
  }
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    justifyContent: 'center',
    alignItems: 'center',
    backgroundColor: '#F5FCFF',
  },
});
